<!-- User Create -->
<head>
  <gui:resources components="['toolTip']"/>
  <meta name="layout" content="app" />
  <title>Create User</title>
</head>
<body>
  <div class="body">
    <h1>Create User <g:if test="${company}">for ${company}</g:if></h1>
    <g:render template="/common/flashMessage" />
    <g:render template="/common/beanError" model="[bean:user]" />
    <g:form action="save">
      <g:if test="${company}">
        <input type="hidden" name="companyId" value="${company.id}" />
        <input type="hidden" name="returnAction" value="${returnAction}" />
      </g:if>
      <table>
        <tbody>
          <g:render template="editUser" />
          <g:render template="/person/editPerson" />
        </tbody>
      </table>
      <tdcmw:submitFormButton action="save" label="Create" />
    </g:form>
  </div>
</body>
